//
//  Geofence.h
//  why
//
//  Created by toogps on 2019/5/31.
//  Copyright © 2019 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
#import <UIKit/UIKit.h>

//NS_ASSUME_NONNULL_BEGIN

typedef void (^TouchBorder)(CGFloat longitude, CGFloat latitude);

@interface Geofence : NSObject <CLLocationManagerDelegate>
@property (nonatomic,assign) CGFloat longitude;
@property (nonatomic,assign) CGFloat latitude;
@property (nonatomic,strong) CLLocationManager *locationManager;
@property (nonatomic,strong) CLCircularRegion *fkit;
@property (nonatomic,copy) TouchBorder block;

+ (instancetype)shareLocation;
//开始定位
- (void)getLocation;
@end

//NS_ASSUME_NONNULL_END
